package com.chuanye.cluster.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageReceiver {

    private static RedisUtils redisTampate;

    @Autowired
    public void setChatService(RedisUtils redisTampate) {
        MessageReceiver.redisTampate = redisTampate;
    }
    private static Logger log = LoggerFactory.getLogger(MessageReceiver.class);

    public void receiveMessage(String message){
        String str=redisTampate.get(message);
        //log.info("MessageReceiver："+str);
    }

}
